package tus;

import java.util.Scanner;

public class Demo1 {
public static void main(String[] args)
{
	char ch;
	Scanner in=new Scanner(System.in);
	ch=in.nextLine().charAt(0);
	boolean f=ch>='A'&&ch<='Z'||ch>='a'&&ch<='z';
	System.out.println(f);
}
}
